<?php defined('SYSPATH') or die('No direct script access.');

class Validation extends Kohana_Validation {
    /**
     * Returns the error messages.
     *
     *
     * @uses    Kohana_Validation.errors
     * @param   mixed   translate the message
     * @return  string
     */
    public function errorsStr(){
        $res = '';
        $errors = $this->errors();
        
        foreach($errors as $k=>$v){
            foreach($v as $kk=>$vv){
                $res .= $vv.' ';
                foreach($vv as $kkk=>$vvv){
                    $res .= $vvv.' ';
                }
            }
            $res .= '<br/>';
        }
        
        return $res;
    }

}
